I misremembered that imports.package.start() would set up the correct
gettext domain, but the module only provides a convenience method
for doing that.
Use it to bring back translations in the Extensions app, whoops.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1108
imports.gi.versions.Gdk = '3.0';
imports.gi.versions.Gtk = '3.0';
-imports.package.initFormat();
-
const Gettext = imports.gettext;
+const Package = imports.package;
const { Gdk, GLib, Gio, GObject, Gtk } = imports.gi;
-const _ = Gettext.gettext;
+Package.initFormat();
const ExtensionUtils = imports.misc.extensionUtils;
function main(argv) {
initEnvironment();
+ Package.initGettext();
new Application().run(argv);
}
overrides:
- files: js/**
excludedFiles:
- - js/extensionPrefs/**
- js/portalHelper/*
globals:
global: readonly